﻿@using Chaine.Models
@{
    var controller = Url.RequestContext.RouteData.Values["controller"].ToString();
    var action = Url.RequestContext.RouteData.Values["action"].ToString();
}
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="Stylesheet"/ type="text/css">
    <link href="@Url.Content("~/Content/bootstrap.min.css")" rel="Stylesheet"/ type="text/css">
    <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/bootstrap.min.js")" type="text/javascript"></script>
</head>
<body id="easytogether_page" class="">
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="brand" href="#">Chaine Shanghai</a>
                <ul class="nav">
                    <li class="@(!controller.ToLower().Contains("admin") ? "active" : "")">@Html.ActionLink("Home", "index", "Home")</li>
                    @if (User.IsInRole(UserRole.Admin.ToString()))
                    { 
                        <li class="@(controller.ToLower().Contains("admin") ? "active" : "")">@Html.ActionLink("Admin", "index", "AdminEvent")</li>
                    }
                </ul>
                <ul class="nav pull-right">
                    @if (Request.IsAuthenticated)
                    {
                    
                        <li class="pull-right"><a><i class="icon-user icon-white"></i></a></li>
                        <li>@Html.ActionLink("Log Off", "LogOff", "Account")</li>
                    }
                </ul>
            </div>
        </div>
    </div>
    <div style="margin-top: 60px;" class="container">
        <div class="sidebar span-5">
            @RenderSection("sidebar", false)</div>
        <div class="maincontent span9">
            @RenderSection("maincontent")
        </div>
    </div>
    <div id="footer">
    </div>
</body>
</html>
